package com.csxh;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ServletContext {
	
		
		private Properties properties;
		public ServletContext() throws IOException{
			InputStream in;
			in=NetServerApp.class
					.getClassLoader()
					.getResourceAsStream("web.properties");
			this.properties=new Properties();
			this.properties.load(in);
			
		}
		public String getServletClassName(String path) {
			// TODO Auto-generated method stub
			return this.properties.getProperty(path);
		}
}
